/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.marcelo.comun.clasesAbstractas;

import java.util.List;
import javax.swing.Action;
import org.openide.nodes.AbstractNode;
import org.openide.nodes.Children;
import org.openide.util.Lookup;
import org.openide.util.Utilities;

/**
 *
 * @author marcelo
 * La idea es encapsular los usos comunes de la aplicacion
 */
public final class DefaultRootNode extends AbstractNode {

    public DefaultRootNode(Children children) {
        super(children);
    }

    public DefaultRootNode(Children children, Lookup lookup) {
        super(children, lookup);
    }
    


    @Override
    public Action[] getActions(boolean context) {
        List<? extends Action> rootActions = Utilities.actionsForPath("Actions/Root");
        return rootActions.toArray(new Action[rootActions.size()]);
    }
            
        
        
    
}
